﻿CREATE TABLE [dbo].[DinnerOrderItem] (
    [Id]            INT             IDENTITY (1, 1) NOT NULL,
    [OrderId]       INT             NOT NULL,
    [FoodId]        NVARCHAR (50)   NULL,
    [FoodName]      NVARCHAR (100)  NULL,
    [FoodUnitPrice] DECIMAL (18, 2) NULL,
    [FoodCount]     INT             NULL,
    [FoodAmount]    DECIMAL (18, 2) NULL,
    CONSTRAINT [PK__DinnerOr__3214EC074F47C5E3] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'主键，自增长', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'Id';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'所属订单Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'OrderId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜品Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'FoodId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜品名称', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'FoodName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜品单价', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'FoodUnitPrice';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜品数量', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'FoodCount';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜品金额', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DinnerOrderItem', @level2type = N'COLUMN', @level2name = N'FoodAmount';

